package com.definity.toolkit.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

public class Entry {

	private String id;
	private String title;
	private String link;
	private String summary;
	private String content;
	private Date publishedDate;
	private Date updateDate;
	private List<Author> author = new ArrayList<Author>();
	private List<Category> category = new ArrayList<Category>();
	
	public Entry() {

	}

	@XmlAttribute
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@XmlElement
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@XmlElement
	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	@XmlElement
	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	@XmlElement
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@XmlElement
	public Date getPublishedDate() {
		return publishedDate;
	}

	public void setPublishedDate(Date publishedDate) {
		this.publishedDate = publishedDate;
	}

	@XmlElement
	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@XmlElement
	public List<Author> getAuthor() {
		return author;
	}

	public void setAuthor(List<Author> authors) {
		this.author = authors;
	}
	
	public void add(Author author) {
		this.author.add(author);
	}
	
	public void remove(Author author) {
		this.author.remove(author);
	}
	
	@XmlElement
	public List<Category> getCategory() {
		return category;
	}
	
	public void setCategory(List<Category> category) {
		this.category = category;
	}
	
	public void add(Category category) {
		this.category.add(category);
	}

	public void remove(Category category) {
		this.category.remove(category);
	}
	
}
